
#import "Foundation_defines.h"
//测试
//#define baseDomain  @"jrpz4.365use.net"//@"app.xkf2017.com"//
//#define basePort    @"0"
//#define basePath     @"app"
//#define basePicPath  @"jrpz4.365use.net/"//@"app.xkf2017.com/"//
//
//
//#define baseWebPath  @"http://jrpz4.365use.net/"//@"http://app.xkf2017.com/"//

//正式
#define baseDomain  @"www.xinkaifa2017.com"//@"app.xkf2017.com"//
#define basePort    @"0"
#define basePath     @"app"
#define basePicPath  @"www.xinkaifa2017.com/"//@"app.xkf2017.com/"//


#define baseWebPath  @"http://www.xinkaifa2017.com/"//@"http://app.xkf2017.com/"//


///////固定域名（用于登录、找回密码）
//#define baseDomainFixed  @"www.junseek.com.cn"//www.junseek.cn
//#define basePortFixed    @"80"
//#define basePathFixed     @"app"
//#define basePicPathFixed  @"www.junseek.com.cn/"//@"www.junseek.com.cn/"

#define baseDomainFixed  baseDomain
#define basePortFixed    @"0"
#define basePathFixed     @"app"
#define basePicPathFixed  @""






#define baseUseSSL  [[Utility Share] userAppUseSSL]  //是否加密https

//语音
#define soapDomain   [[Utility Share] userAppdomain]
#define soapPort   @"80"
#define soapPath     @""
#define soapPicPath  @""





// WEBsocket
#define LikeWEBsocket [NSString stringWithFormat:@"ws://%@:%@",[[Utility Share] userAppIp],[[Utility Share] userAppsocketport]]// @"ws://120.26.104.99:13838"// @"ws://182.254.155.39:444"//



#define default_PageSize 20
#define default_StartPage 1
//[[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString *)kCFBundleVersionKey]

//#define Models_path @"/Users/thomas/Documents/work/Genius/AFDFramework/AFDFramework/Utility/"
#define kVersion7 ([[[UIDevice currentDevice] systemVersion] floatValue]>=7.0)
#define kVersion8 ([[[UIDevice currentDevice] systemVersion] floatValue]>=8.0)

#define kTopHeight 64
//wifi、tel
#define kContentHeight (H(self.view)-64)


///upload image size
#define kUploadImageWidth ([[[[[[Utility Share] ZKUploadImage] objectForJSONKey:@"uploadArray"] objectAtIndex:[[[[Utility Share] ZKUploadImage] valueForJSONStrKey:@"selectIndex"] integerValue]] valueForJSONStrKey:@"width"] integerValue])
#define kUploadImageHeight ([[[[[[Utility Share] ZKUploadImage] objectForJSONKey:@"uploadArray"] objectAtIndex:[[[[Utility Share] ZKUploadImage] valueForJSONStrKey:@"selectIndex"] integerValue]] valueForJSONStrKey:@"height"] integerValue])

#define rgb(r,g,b) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1]
#define zrgbwhiteColor rgb(255,255,255)//17b4eb
#define zrgborenge rgb(223,171,34)//17b4eb

#define rgbpublicColor RGBCOLOR(229, 166,  61)//17b4eb
#define rgbBlue RGBCOLOR(75, 100,  155)
#define rgbGray RGBACOLOR(245, 245, 245, 1)
#define rgbTxtGray RGBACOLOR(150, 150, 150, 1)
#define rgbTitleColor RGBCOLOR(0, 0,  0)
#define rgbTitleDeepGray RGBACOLOR(70, 70, 70, 1)
#define rgbTxtDeepGray RGBACOLOR(100, 100, 100, 1)
#define rgbLineColor RGBACOLOR(80, 80, 80, 0.2)
#define rgbOrange RGBCOLOR(255, 108, 70)
#define rgbRedColor RGBCOLOR(244, 80, 8)
#define fontTitle Font(15)
#define fontTxtContent Font(13)
#define fontSmallTitle Font(11)
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue &0xFF00) >>8))/255.0 blue:((float)(rgbValue &0xFF))/255.0 alpha:1.0]

#define CN 1
#define UI_language(cn,us) CN?cn:us

#define UI_btn_back CN?@"返回":@"back"

#define UI_btn_search CN?@"搜索":@"Search"

#define UI_btn_upload CN?@"上传":@"Upload"
#define UI_btn_submit CN?@"提交":@"Submit"
#define UI_btn_cancel CN?@"取消":@"cancel"
#define UI_btn_confirm CN?@"确定":@"OK"
#define UI_btn_delete CN?@"删除":@"Delete"
#define UI_tips_load CN?@"正在加载...":@"Loading..."

#define alertErrorTxt @"哎呀！服务器偷懒了,待会再试试"
#define alertMessaget @"哎呀！服务器偷懒了,待会再试"
#define KScrollYMobileDistance 300.0



#define DOCUMENTS_FOLDER [[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"] stringByAppendingPathComponent:@"SpeechSoundDir"]//录音的存放文件夹
#define DOCUMENTS_CHAT_FOLDER [[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"] stringByAppendingPathComponent:@"downAudio"]//语音聊天的录音存放文件夹
#define FILEPATH [DOCUMENTS_FOLDER stringByAppendingPathComponent:[self fileNameString]]  //录音的路径

#define documentsDirectory_SpeechSound  [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask,YES) objectAtIndex:0] stringByAppendingPathComponent:@"SpeechSoundDir"]//录音临时文件
#define K_alreadyNum @"K_alreadyNum"

#define DOCUMENTS_SHARE_IMAGES [[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"] stringByAppendingPathComponent:@"shareImages"]//分享图片、GIF存放文件夹

//存放视频文件
#define DOCUMENTS_MOVIE [[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"] stringByAppendingPathComponent:@"downloadMovie"]//

#define DOCUMENTS_Recorder [[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"] stringByAppendingPathComponent:@"ZKAudioRecorder"]//临时录音的存放文件夹_培训
#define DOCUMENTS_RecorderAfterTranscoding [[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"] stringByAppendingPathComponent:@"ZKAudioRecorderAfterTranscoding"]//MP3录音的存放文件夹_培训

#define DOCUMENTS_TriningAudio [[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"] stringByAppendingPathComponent:@"downloadTriningAudio"]//MP3录音的存放文件夹_培训

///录音数据
#define ZKAudioDataV3 @"ZKAudioDataV3"

//合作身份者id，以2088开头的16位纯数字
#define PartnerID @""
//收款支付宝账号
#define SellerID  @""

//安全校验码（MD5）密钥，以数字和字母组成的32位字符
#define MD5_KEY @""

//商户私钥，自助生成
#define PartnerPrivKey @""//
//支付宝公钥
#define AlipayPubKey   @""//


#define ZKShowAudioPlayBtton @"ZKShowAudioPlayBtton"
#define ZKHiddenAudioPlayBtton @"ZKHiddenAudioPlayBtton"


///常用
#define krequestParam NSMutableDictionary*dictparam=[NSMutableDictionary new];\
if (![[[Utility Share] userToken] notEmptyOrNull]) {\
}else{\
[dictparam setObject:[[Utility Share] userToken] forKey:@"token"];\
[dictparam setObject:[[Utility Share] userId] forKey:@"uid"];}


//****************************************2017-01-17  登录 ************************************************

#define XKFwelcomechktoken @"welcome/chktoken"//登陆检查
#define XKFwelcomelogin @"homes/login"//登陆
#define XKFusergetversion @"user/getversion"////版本更新






#define XKFwelcome @"welcome/"//APP首页广告获取
#define XHFwelcomehome @"products?uid=%@&token=%@"//APP牌照大厅接口
#define XKFproductslists @"products/lists?uid=%@&token=%@&cid=%@&keys=%@&page=%@&pagesize=20&levelid=%@type=%@"
#define XKFproductsask @"products/ask"//牌照提问接口
#define XKFuser @"user?uid=%@&token=%@"//个人中心首页
#define XKFuserprofiles @"user/profiles"//个人资料编辑
#define XKFuserdepartment @"user/department?uid=%@&token=%@"//获取部门
#define XKFusereditpass @"user/editpass"//修改登陆密码
#define XKFnews @"news?uid=%@&token=%@&cid=%@&keys=%@&page=%@&pagesize=20"//资讯列表
#define XKFproductsmypost @"products/mypost?uid=%@&token=%@&cid=%@&keys=%@&page=%@&pagesize=20&levelid=%@"//我的发布

#define XKFproductscollection @"products/collection?uid=%@&token=%@&id=%@&act=%@"//十五、收藏产品（新增02.09）
#define XKFnewscollection @"news/collection?uid=%@&token=%@&id=%@&act=%@"//十五、收藏资讯（新增02.09）
#define XKFproductsmycollection @"products/mycollection?uid=%@&token=%@&cid=%@&keys=%@&page=%@&pagesize=20&levelid=%@"//十六、我的收藏（新增02.09）
#define XKFnewsmycollection @"news/mycollection?uid=%@&token=%@&cid=%@&keys=%@&page=%@&pagesize=20"//二十、我的收藏资讯列表（新增02.10）
#define XKFproductskeywords @"products/keywords?uid=%@&token=%@&keys=%@"//十八、产品搜索关键字列表（新增02.09）



//****************************************2017-03-28  V3 ************************************************
#define XKFV3homesad @"homes/ad"//首页广告获取
#define XKFV3homes @"homes/"//首页
#define XKFV3homescomment @"homes/comment"//牌照评论
#define XKFV3homescollection @"homes/collection?uid=%@&token=%@&id=%@&act=%@"//收藏产品
#define XKFV3demand @"demand"//供求管理
#define XKFV3demandpushdemand @"demand/pushcomment"//供求评论
#define XKFV3demanddemandadd @"demand/demandadd"//供求添加
#define XKFV3demanddelcomment @"demand/delcomment"//删除评论
#define XKFV3demanddeldemand @"demand/deldemand"//删除供求
#define XKFV3demanddemandpraise @"demand/demandpraise"//供求点赞
#define XKFV3usertop @"user/top"//排行榜
#define XKFV3userdate @"user/date"//日期

#define XKFV3usermyamoeba @"user/myamoeba"//我的阿米巴
#define XKFV3newsnewscate @"news/newscate"//新闻分类
#define XKFV3usermyproject @"user/myproject"//我的项目
#define XKFV3usermyproduct @"user/myproduct"//我的牌照
#define XKFV3mydemand @"demand/mydemand"//我的供求
#define XKFV3productsdowncate @"user/downcate"//下载专区分类
#define XKFV3productsdownlist @"user/downlist"//下载列表
#define XKFV3usercontact @"user/contact"//员工通讯录
#define XKFV3userinformation @"user/information?uid=%@&token=%@"//个人中心
#define XKFV3usershare @"user/share"//分享接口
#define XKFV3expand @"user/expand"//推广效果
#define XKFV3userextenddetail @"user/extenddetail"//推广效果

#define XKFV3personcardsharecard @"user/sharecard"//名片分享
#define XKFV3usernotice @"user/notice?uid=%@&token=%@&page=%@&pagesize=20"//公告
#define XKFV3usersetsend @"user/setsend"//推送设置
#define XKFV3usersendstatus @"user/sendstatus"//推送状态展示

#define XKFV3homespushcomment @"homes/pushcomment"//添加牌照评论
#define XKFV3homesproductcomment @"homes/productcomment"//牌照评论
#define XKFV3homesdelprocomt @"homes/delprocomt"//删除牌照评论


//****************************************2017-08-08  V4 ************************************************
#define XKFV4welcomeregistercode @"welcome/registercode"// 注册验证码 (2017.8 新增)
#define XKFV4welcomeregister @"welcome/register"//注册 (2017.8 新增)
#define XKFV4welcomeforgetpassword @"welcome/forgetpassword"//忘记密码 (2017.8 新增)
#define XKFV4welcomeforgetcode @"welcome/forgetcode" //忘记密码验证码 (2017.8 新增)
#define XKFV4welcomebindcode @"welcome/bindcode"//绑定手机验证码 (2017.8 新增)
#define XKFV4welcometposlogin @"welcome/tposlogin"//第三方登陆 (2017.8 新增)
#define XKFV4welcomebindmobile @"welcome/bindmobile"//绑定手机 (2017.8 新增)
#define XKFV4customer @"customer"//客户列表 (2017.8 新增)
#define XKFV4customerupdatecustomer @"customer/updatecustomer"//添加客户 (2017.8 新增)
#define XKFV4customerslip @"customer/slip"//销售单列表 (2017.8 新增)
#define XKFV4customerupdateslip @"customer/updateslip"//添加销售单
//#define XKFV4customerproduct @"customer/product"//我的牌照列表 (2017.8 新增)(员工,渠道商)
#define XKFV4customercustomer_detail @"customer/customer_detail"//客户详情 (2017.8 新增)
#define XKFV4customerslip_detail @"customer/slip_detail"//销售单详情 (2017.8 新增)
#define XKFV4productscate @"products/cate"//牌照分类 (2017.8 新增)
#define XKFV4productsupdateproducts @"products/updateproducts"//
#define XKFV4customerproductcity @"products/city"
#define XKFV4productsdetails @"products/details"//牌照详情 (2017.8 新增)
#define XKFV4productslists @"products/lists"//首页 (2017.8 新增)
#define XKFV4welcomeunbindcode @"welcome/unbindcode"//解绑手机号验证码 (2017.8 新增)
#define XKFV4welcomeunbind @"welcome/unbind"//解绑手机号 (2017.8 新增)
#define XKFV4welcomechangecode @"welcome/changecode"//重新绑定手机号验证码 (2017.8 新增)
#define XKFV4welcomechange @"welcome/change"//重新绑定手机号 (2017.8 新增)
#define XKFV4customerarchives_lists @"customer/archives_lists"//简历列表 (2017.8 新增)
#define XKFV4customerarchives @"customer/archives"//简历详情 (2017.8 新增)
#define XKFV4homesnotice_red @"homes/notice_red"//首页通知红点 (2017.8 新增)




